// 导入fs
const fs = require('fs')

// function setTable

module.exports = {
  setTable(req, resp) {

    const { arr } = req.body

    fs.writeFile('./data.json', JSON.stringify(req.body), () => { })

    resp.send(JSON.stringify({
      code: 1,
      msg: '文件修改成功',
    }))
  }
}